//package cn.itheima.apis.article.fallback;
//
//import cn.heima.model.article.Dtos.ArticleDto;
//import cn.heima.model.common.dtos.ResponseResult;
//import cn.heima.model.common.enums.AppHttpCodeEnum;
//import cn.itheima.apis.article.IArticleClient;
//import org.springframework.stereotype.Component;
//
////feign失败设置
////服务降级处理
//@Component
//public class IArticleClientFallback implements IArticleClient {
//
//    @Override
//    public ResponseResult saveArticle(ArticleDto dto) {
//        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
//    }
//}
